<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>喜乐康智能家居系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
  
  	<script type="text/javascript">
  		$(function(){
  	  		initTab();
			$('.setting_background').load('setting!room.do');
  	  	})
  	  	
  	  	function pressTabSetting(type){
  	  	  	$(".device_use_tab ul li").attr("className","device_use_tab_ul_li");
			switch(type){
				case 1:{
					$("#device_use_tab_ul_li1").attr("className","device_use_tab_ul_li_press");
					$('.setting_background').load('setting!room.do');
					break;
				}
				case 2:{
					$("#device_use_tab_ul_li2").attr("className","device_use_tab_ul_li_press");
					$('.setting_background').load('setting!device.do?deviceModel=1');
					break;
				}
				case 3:{
					$("#device_use_tab_ul_li3").attr("className","device_use_tab_ul_li_press");
					$('.setting_background').load('setting!scene.do');
					break;
				}
				case 4:{
					$("#device_use_tab_ul_li4").attr("className","device_use_tab_ul_li_press");
					$('.setting_background').load('setting!advancedSetting.do');
					break;
				}
			}
  	  	}
  	</script>
  </head>
  
  <body>
  	<div class="content_background">
  		<div class="device_use_title">
	  		<div class="device_use_tab">
	  			<ul>
	  				<li class="device_use_tab_ul_li_press" id="device_use_tab_ul_li1" onclick="pressTabSetting(1)">房间</li>
	  				<li class="device_use_tab_ul_li" id="device_use_tab_ul_li2" onclick="pressTabSetting(2)">面板</li>
	  				<li class="device_use_tab_ul_li" id="device_use_tab_ul_li3" onclick="pressTabSetting(3)">场景</li>
	  				<li class="device_use_tab_ul_li" id="device_use_tab_ul_li4" onclick="pressTabSetting(4)">高级设置</li>
	  			</ul>
	  		</div>
	  		<div onmouseup="backHome('up')" onmousedown="backHome('down')" class="home"></div>
  		</div>
  		<div class="setting_background" id="setting_background">
  		</div>
  	</div>
  </body>
</html>
